﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BTHolder : MonoBehaviour, UnityBroadcastHelper.IBroadcastListener
{
    UnityBroadcastHelper helper;
    void Start()
    {
        if (helper == null)
        {
            helper = UnityBroadcastHelper.Register(
                new string[] { "some_action_string" }, this);
        }
    }
    public void OnReceive(string action, Dictionary<string, string> dictionary)
    {
        // handle the broadcast
        Debug.Log("On Receive!");
    }
}